<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("basePath", basePath);
	String nurseQualityControlInfoJson = (String) request.getAttribute("nurseQualityControlInfoJson");
	String respondResultJson = (String) request.getAttribute("respondResultJson");
%>
<link rel="stylesheet"
	href="${basePath}assets/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css" />
<link rel="stylesheet"
	href="${basePath}assets/css/coding_attached/edit_index_info.css" />

<script type="text/javascript"
	src="${basePath}assets/jquery/jquery.min.js"></script>
<script type="text/javascript"
	src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript"
	src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}assets/layer/layer.js"></script>
<script type="text/javascript"
	src="${basePath}assets/cityselect/cityselect/cityselect.js"></script>
<script type="text/javascript" src="${basePath}assets/js/header.js"></script>

<script type="text/javascript" src="${basePath}assets/js/iframe.js"></script>
<script type="text/javascript"
	src="${basePath}assets/My97DatePicker/WdatePicker.js"></script>
<script src="${basePath}assets/distpicker/js/distpicker.data.js"></script>
<script src="${basePath}assets/distpicker/js/distpicker.js"></script>
<script src="${basePath}assets/distpicker/js/main.js"></script>
<script type="text/javascript"
	src="${basePath}assets/jqueryValidate/jquery.validate.js"></script>

<script type="text/javascript"
	src="${basePath}assets/jqueryValidate/localization/messages_zh.js"></script>
<script type="text/javascript"
	src="${basePath}assets/js/coding_attached/edit_nurse_quality_info.js"></script>
<input type="hidden" id="basePath" value="${basePath }">
<form action="${basePath}medical_record_attached_coding/edit_nurse_quality_info"
	method="post" id="nurseQualityControlInfoForm">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<table style="width:99%;">
		<thead>
			<tr>
				<td colspan="7"><input type="button" onclick="formSubmit(this)" value="保存" class="btn" disabled="disabled">
				</td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td class="tdLabel_10_label" rowspan="2">压疮情况</td>
				<td class="tdLabel_30_value" colspan="2">
					是否有压疮:&nbsp;&nbsp;<select name="proeesureSoresInfo.whetherProeesureSoresCode" data-type="129Select" style="width: 60%">
					</select>
					<input type="hidden" name="proeesureSoresInfo.whetherProeesureSoresName">
					
				</td>

				<td class="tdLabel_30_value" colspan="2">
					压疮发生时间:&nbsp;&nbsp;<select name="proeesureSoresInfo.proeesureSoresTimeCode" data-type="proeesureSoresTime" style="width: 60%">
					</select>
					<input type="hidden" name="proeesureSoresInfo.proeesureSoresTimeName">
				</td>
				<td class="tdLabel_30_value" colspan="2">
					已有压疮来源:&nbsp;&nbsp;<select name="proeesureSoresInfo.alreadyProeesureSoresSourceCode" data-type="alreadyProeesureSoresSource" style="width: 60%">
					</select>
					<input type="hidden" name="proeesureSoresInfo.alreadyProeesureSoresSourceName"></td>
			</tr>
			
			<tr>
				<td class="tdLabel_30_value" colspan="2">
					压疮个数:&nbsp;&nbsp;<select name="proeesureSoresInfo.proeesureSoresNumberCode" data-type="proeesureSoresNumber" style="width: 60%">
					</select>
					<input type="hidden" name="proeesureSoresInfo.proeesureSoresNumberName">
				</td>

				<td class="tdLabel_30_value" colspan="2">
					压疮部位:&nbsp;&nbsp;
					<select name="proeesureSoresInfo.proeesureSoresPartCode" data-type="proeesureSoresPart" style="width: 60%"></select>
					<input type="hidden" name="proeesureSoresInfo.proeesureSoresPartName" />
				</td>
				
			</tr>
			<tr>
				<td class="tdLabel_10_label" rowspan="2">跌倒或坠床情况</td>
				<td class="tdLabel_30_value" colspan="6">
					住院期间是否发生跌倒或坠床:
					<input type="radio" class="radio_cl" name="fallDownInfo.whetherFallDownCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="fallDownInfo.whetherFallDownCode" title="否" value="2"/>
						否 
					<input type="hidden" name="fallDownInfo.whetherFallDownName"/>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					住院期间跌倒或坠床所致伤害严重程度分级:&nbsp;&nbsp;<!-- <select name="fallDownInfo.damageClassificationCode" data-type="damageClassification" style="width: 150px;">
					</select> -->
					<input type="text" name="fallDownInfo.damageClassificationName">
				</td>
			</tr>
			<tr>
				<td class="tdLabel_30_value" colspan="6">
					住院期间跌倒或坠床原因:&nbsp;&nbsp;<select name="fallDownInfo.fallDownCauseCode" data-type="fallDownCause" style="width: 150px;">
					</select>
					<input type="hidden" name="fallDownInfo.fallDownCauseName">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					住院期间是否再次发生跌倒或坠床:
					<select name="fallDownInfo.whetheraAgainFallDownCode" data-type="129Select" style="width: 150px;">
					</select>
					<input type="hidden" name="fallDownInfo.whetheraAgainFallDownName">
					
				</td>
			</tr>
			<tr>
				<td class="tdLabel_10_label" rowspan="2">物理约束情况</td>
				<td class="tdLabel_30_value" colspan="6">
					住院期间是否使用物理约束:
					<input type="radio" class="radio_cl" name="physicalConstraintInfo.whetherPhysicalConstraintCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="physicalConstraintInfo.whetherPhysicalConstraintCode" title="否" value="2"/>
						否 
					<input type="hidden" name="physicalConstraintInfo.whetherPhysicalConstraintName"/>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					住院期间物理约束总时间（天）:
					<input type="text" name="physicalConstraintInfo.physicalConstraintDay" style="width: 40px;">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					住院期间物理约束方式:<select name="physicalConstraintInfo.physicalConstraintWayCode" data-type="physicalConstraintWay" style="width: 150px;">
					</select>
					<input type="hidden" name="physicalConstraintInfo.physicalConstraintWayName">
				</td>
			</tr>
			<tr>
				<td class="tdLabel_30_value" colspan="6">
					住院期间物理约束工具:&nbsp;&nbsp;<select name="physicalConstraintInfo.physicalConstraintToolCode" data-type="physicalConstraintTool" style="width: 150px;">
					</select>
					<input type="hidden" name="physicalConstraintInfo.physicalConstraintToolName">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					住院期间物理约束原因:
					<select name="physicalConstraintInfo.physicalConstraintCauseCode" data-type="physicalConstraintCause" style="width: 150px;">
					</select>
					<input type="hidden" name="physicalConstraintInfo.physicalConstraintCauseName">
					
				</td>
			</tr>
			
			<tr>
				<td class="tdLabel_10_label" rowspan="3">产科产房护理质量</td>
				<td class="tdLabel_30_value" colspan="6">
					产科胎次:&nbsp;
					<select name="obstetricDeliveryInfo.obstetricTireTimeCode" data-type="obstetricTireTime" style="width: 150px;">
					</select>
					<input type="hidden" name="obstetricDeliveryInfo.obstetricTireTimeName">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					产科胎儿数量:&nbsp;<select name="obstetricDeliveryInfo.numberOfFetalCode" data-type="numberOfFetal" style="width: 150px;">
					</select>
					<input type="hidden" name="obstetricDeliveryInfo.numberOfFetalName">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					产妇会阴裂伤程度:&nbsp;<select name="obstetricDeliveryInfo.degreeOfPerinealLacerationCode" data-type="degreeOfPerinealLaceration" style="width: 150px;">
					</select>
					<input type="hidden" name="obstetricDeliveryInfo.degreeOfPerinealLacerationName">
				</td>
			</tr>
			<tr>
				<td class="tdLabel_30_value" colspan="6">
					新生儿是否发生产伤:&nbsp;
					<select name="obstetricDeliveryInfo.whetherBirthInjuryCode" data-type="129Select" style="width: 150px;">
					</select>
					<input type="hidden" name="obstetricDeliveryInfo.whetherBirthInjuryName">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					是否器械辅助阴道分娩:&nbsp;
					<select name="obstetricDeliveryInfo.whetherInstrumentalDeliveryCode" data-type="129Select" style="width: 150px;">
					</select>
					<input type="hidden" name="obstetricDeliveryInfo.whetherInstrumentalDeliveryName">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					是否非器械辅助阴道分娩:&nbsp;
					<select name="obstetricDeliveryInfo.whetherNonAssistedDeliveryCode" data-type="129Select" style="width: 150px;">
					</select>
					<input type="hidden" name="obstetricDeliveryInfo.whetherNonAssistedDeliveryName">
				</td>
			</tr>
			<tr>
				<td class="tdLabel_30_value" colspan="6">
					是否院内生产:&nbsp;
					<select name="obstetricDeliveryInfo.whetherInTheProductionCode" data-type="129Select" style="width: 150px;">
					</select>
					<input type="hidden" name="obstetricDeliveryInfo.whetherInTheProductionName">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					新生儿离院方式:&nbsp;
					<select name="obstetricDeliveryInfo.neonatalDischargeCode" data-type="neonatalDischarge" style="width: 150px;">
					</select>
					<input type="hidden" name="obstetricDeliveryInfo.neonatalDischargeName">
					
				</td>
			</tr>
		</tbody>
	</table>
</form>

<script>
	$(function(){
		var nurseQualityControlInfoJson = <%=nurseQualityControlInfoJson%>;
		var respondResultJson = <%=respondResultJson%>
		if(respondResultJson){
			if(respondResultJson.success){
				layer.msg("保存成功",{offset: '350px'});
			}else{
				layer.msg("保存失败",{offset: '350px'});
			}
		}
		console.log(nurseQualityControlInfoJson);
		initPage(nurseQualityControlInfoJson);
		$("input[type='button']").removeAttr("disabled");
	});
</script>